Carbon dioxide cycling through the mantle and implications for the climate of ancient Earth