It's the boiler over run protection timer, its probably burnt out!, near your hot water tank you will see the wires from the pumps going to a white junction box in the lid of that junction box is a timer that runs when the signal from the thermostat is removed i.e when the tank hits temperature this timer will run the pump for a couple of minutes more to take away the boiling water from the boiler, it is this water that is causing the banging as it is being heated and expanded but with nowhere to go.
Silo
May 2008