Sulphur-bearing molecules as tracers of shocks in interstellar clouds