Women with a history of depression are at greater risk, whereas antidepressant medication can negatively affect men’s fertility