Cosmic-ray Induced Destruction of CO in Star-forming Galaxies