Hazardous waste from the Hamilton Seabright sewage pipeline has been contaminating the waters off South Shore beaches, according to a 2013 water-quality study — but only during rare, sustained weather patterns.