The functioning of health services in the future is at risk because staff are burned out, MPs are warning.