Text this: Influence of physical function and frailty on unplanned readmission in middle-aged and older patients discharged from a hospital: a follow-up study