Gait as predictor of dementia