The number of people waiting more than 12 hours in A&E departments in England last month was the third-highest ever.