Effect of shocks on interstellar turbulence and cosmic-ray dynamics