A study found that people who surf the Internet in middle age can reduce their risk of dementia by more than half in old age.