The NHS brain drain has hit a record high, with more doctors than ever applying to leave Britain, new figures suggest.