Erosion of Icy Interstellar Objects by Cosmic Rays and Implications for `Oumuamua