Does it dispense from one of those cheap white plastic taps?
I had those for a long time and also it just dispensed foam. Part of the problem is that it's going from a high pressure to a lot pressure in a very short distance, and short of dropping the pressure, there's not a lot you can do about it (this is why keg setups have longer lines than strictly necessary). When the pressure drops suddenly, a lot of tiny bubbles come out of solution and that's the foam.
Compounding this problem in the tap itself. The plastic design means the beer has to go through 90° degree turns though the tap. This causes turbulence, and additional low pressure areas within the tap that makes more CO2 come out of solution.
Then, in addition to this, the design means that you tend to only open the tap a little bit, and that means the beer rushes through this tiny gap at great speed and this reduces the pressure even more (Venturi effect) and makes even more CO2 come out of solution. Counter intuitively, a slow pour will get you more foam (though admittedly, a fast pour will probably not stay in the glass very much).
So what can you do about it?
1. Reduce your serving pressure until to stops foaming
2. Replace the taps on your pressure barrel. I got some plumbing stuff - ball valve connected to a bent piece of copper pipe that doesn't make the beer go through a 90° turn. (This is also a lot more controllable than a plastic tap)
3. Pour faster (hopefully with the help of the above this can be made manageable).
That worked for me. Up until I made those changes, I used to have to dribble out a pint of foam from the cask until the pressure reduced to acceptable levels like stevieboy does.