Swimmers have been warned to avoid taking a dip in a well-known river after a spike in reports of illness.