Body mass index as a prognostic factor for fracturing of the proximal extremity of the femur: a case-control study