Predictors of hospitalisations and emergency department presentations shortly after entering a residential aged care facility in Australia: a retrospective cohort study