Parental preferences and allocations of investments in children's learning and health within families