Hospitals admit errors over cancelled surgery