Chern class and Riemann-Roch theorem for cohomology theory without homotopy invariance