Nematicity in a cuprate superconductor revealed by angle-resolved photoemission spectroscopy under uniaxial strain