People who spent more time in mentally passive activities while sitting had a significantly higher risk of developing dementia later, according to a new study.