The warning comes as NHS targets are being missed