Determinants of time to surgery for patients with hip fracture