I have erratic hot water from my tap in the bathroom sink, when I turn on the hot water it runs for about 30 seconds and then bangs and the water stops. After a few seconds the water returns with a force and we have a constant banging like a machine gun, from the tap.

What could cause this, and how can I fix it?