Referee Mark Halsey has bowed out of football and hopes his story can inspire other cancer sufferers.