Yorkshire Water to shell out £40 million for ‘serious failures’