Opposition parties said the waiting times faced by patients "makes a mockery of John Swinney’s claim that the health service is improving".