Ultrafast renormalization of the onsite Coulomb repulsion in a cuprate superconductor