Number of patients waiting 18 weeks for treatment in England passes three million