Water hammer is not caussed by too much pressure, but rather by high velocity of water flow, coupled with a fast closing faucet or dishwasher (or washing machine valve, but since the cold water also has one this is probably not the case for you), valve. You more likely have a tight pipe in the wall and the sound you hear is it expanding from the hot water and rubbing against a wood stud.