Residents in several Massachusetts communities are being cautioned to avoid contact with the Merrimack River after thousands of gallons of sewage was released into the water.The City of Haverhill Department of Public Works issued the warning Thursday after a contractor accidentally discharged wastewater into the city’s storm drainage system, according to a statement.