Middle-aged surgeons 'perform best'