The penalty for motherhood? More women are leaving their jobs, undermining their careers and earning potential and spelling trouble for the economy.