The charitable deduction is mostly for the rich. New study argues that’s by design.