People have been told to keep doors and windows closed and avoid going in the nearby River Rhymney