Only a fraction of medical students are from working class backgrounds despite efforts to widen access to the profession, a report has suggested.