Water companies dumped raw sewage for more than 10,000 hours last year from pipes meant to be used only for emergencies.