there r a number of things that cause water hammer. faulty incoming watermains isolating stop cocks or as already pointed out, faulty taps. loose watermains pipework, sometimes in roofspaces at the storage tanks can shudder. this can travel through the rest of the mains water pipework. valves...