People had to be evacuated from their homes and a road sweeper got trapped after the ground collapse in the Rhondda