The structure of wandering in dementia