Dairy farms told to check effluents