Elderly patients in acute medical wards: factors predicting length of stay in hospital.