NHS traps doctors in posts without prospects