A common cause of infertility may be due to a hormonal imbalance before birth, researchers say.