Smoking increases risk of dementia