Fermi surface transformation at the pseudogap critical point of a cuprate superconductor