Invest to staff the NHS properly, healthcare leaders warn prime minister