Study: Residents work too many hours