water hammer is not caused by pipes touching.
it's by high water pressure.
you won't stop water hammer by closing the stopcock
that only reduces the flow not water pressure which causes water hammer.
without knowing the layout or where the problem is can't say where to locate the arrestor.
hi-spec plumbing & heating (essex), March 2010