Bargaining within the family can generate a political gender gap