The optimal taxation of families