Just found a load of mayo like shit in my breather pipes, and my filler cap, so im assuming the headgasket has gone!!

What causes this? Anything to do with too much heat? Too much fuel? Just want to make sure when i get a new one on, there aint gonna be chance of it happening again?
Also, anyone recommend anyone in notts area who can do the job, and do it well??