Determinants of functional outcome in hip fracture: the role of comorbidity