The economy contracted in May for the second month in a row, adding to pressure on the chancellor.