Doctors’ pay fell more than public sector average over 14 years, analysis shows