NHS needs more investment to stop 'vicious circle' of staff