Prevalence of chronic pain or analgesic use in children and young people and its long-term impact on substance misuse, mental illness, and prescription opioid use: a retrospective longitudinal cohort study