Cognitive function and basic activity of daily living in elderly disabled inpatients.