ADHD is linked to other mental health issues. A new study suggests why