Entropy conservation property and entropy stabilization of high-order continuous Galerkin approximations to scalar conservation laws