A non-Archimedean approach to the Yau–Tian–Donaldson Conjecture