The number of UK medical school students from the most deprived areas has more than doubled over the past decade.