Regulator Ofwat had told water firms to invest more in improving services between 2020 and 2025.