A Wolf-Rayet-like progenitor of SN 2013cu from spectral observations of a stellar wind