Rising attrition rate for NHS workers shown in study