A retrospective cohort study of factors associated with severity of falls in hospital patients