Ofwat has forced firms to hand £157.6 million back to customers after missing their targets on pollution, leaks and customer satisfaction.