Both Labour and the Liberal Democrats have criticised David Cameron's plans for a tax break for married couples.