Wolf-Rayet stars in young massive star clusters as potential sources of Galactic cosmic rays