Rotten spouses, family transfers, and public goods