Search for inelastic WIMP-iodine scattering with COSINE-100