A young driver had a “moment of madness” when he drove on the wrong side of the road during a police chase in County Durham.