Turkish President Tayyip Erdogan insists a valuable foundation has been laid ahead of future climate talks, despite a failure to reach agreement at COP31.