Childhood mental health problems resulting from early-life adversity drive poorer cognitive performance in adolescence