Predictive factors of hospital stay, mortality and functional recovery after surgery for hip fracture in elderly patients