Dementia is a surrogate for frailty in hip fracture mortality prediction