Collapse of superconductivity in cuprates via ultrafast quenching of phase coherence