Sitting all day increases risk of dementia, study finds