Essex recovered from a poor start to reach 268-8 at stumps on the opening day of their Division Two game with Lancashire at Chelmsford.