Mechanical failure of total hip arthroplasties and associated risk factors