Functional status and early surgery in elderly patients with hip fracture