Plumbing Questions? Ask a Plumber for Answers ASAP
What you are describing is water hammer, you need a water hammer arrestor such as the one here which takes the shock of water flowing and suddenly stopping and prevents pipes shaking. The cause of water hammer could be TRV on radiators opening or closing, pumps starting and stopping or even a boiler starting up.
In terms of location of the noise the pipes cleats holding on the wall could be a cause, but this doesnt sound like an expansion issue,