Hospitals, ambulances and mental health services are spending £1bn a year on care from outside the NHS.