The COP31 climate summit in Turkey has formally come to an end after countries failed to agree a deal.