Dementia linked to slower walking speed in a new study