Pandemic sees the number of patients waiting more than 18 weeks for routine treatment at hospitals soar