Cognitive reserve and its correlates in child and adolescent offspring of patients diagnosed with schizophrenia or bipolar disorder