The protective role of trait anxiety: a longitudinal cohort study