The mediating role of socioeconomic status on the relationship between pregnancy history and later-life cognition