Water firms in England and Wales have been ordered to return £157.6m to customers due to their poor performance.