NHS can retain more staff with targeted support schemes, analysis suggests