Writing off medical students’ loans could improve NHS retention, says think tank