An online program aimed at improving diet, exercise and other modifiable risk factors for dementia has resulted in better cognition in older adults, Australian research has found.