Carbon dioxide cycling and implications for climate on ancient Earth