Unravelling the contribution of complex trauma to psychopathology and cognitive deficits: a cohort study