Researchers at Boston University found that how people complete cognitive tests can predict dementia risk years before diagnosis.