Regularity and separation from potential barriers for the Cahn–Hilliard equation with singular potential