Social norms and the fertility transition