Yorkshire Water has agreed a £40m 'enforcement package' with the industry regulator after an investigation found sewage outflow and wastewater deficiencies at the company.