People at risk of dementia should make lifestyle changes as ‘early as possible’