People with ADHD have a higher risk for cognitive impairment and possibly dementia later in life, new research suggests.