Prospective study of the postoperative evolution of patients with a hip fracture and assessment of the factors that may affect the treatment outcome