The impact of functional status on LOS and readmission in older patients in geriatrics department: a cohort study