A stressful pregnancy reduces the chances of having a boy, a study shows