Older people who experience significant weight gain or weight loss could be raising their risk of developing dementia, suggests a study from Korea.