Essex beat Surrey by one wicket to head off world record attempt – as it happened