An environmental group have accused Yorkshire Water of not protecting members of the public from sewage pollution in North Yorkshire.