David Schwimmer admits his desire to talk to girls in acting class ‘derailed’ career in medicine