Record numbers waiting to start hospital treatment, new figures show