Three people were cut out of cars and two were taken to hospital