A court has heard that Dŵr Cymru Welsh Water failed to comply with permit conditions at 300 sites across Wales - it also faces a significant order for costs