The number of doctors retiring early has more than trebled over the past 13 years, with concerns that hefty tax bills are driving the action.