There was a significant rise in the number of people waiting for long periods in emergency departments.