A new study finds that stress during pregnancy can lead to anxiety and depression in adulthood