Three water companies are facing a combined fine of £168m after a series of failings, including over sewage treatment.