TV personality Michael Barrymore has admitted cocaine possession when he appeared in court following a car collision.