Workers face a financial penalty if they switch careers, with people on lower earnings hit hardest