Two families and a dog were trapped on the seafront after a cliff fall damaged the steps connecting the beach to the car park.