A quantitative genetic model of altruistic selection