In classical field theory we can get, that adding gradient of some scalar field to magnetic vector potential does not change the physics at all. So, we have such a symmetry:
$\boldsymbol{A}\rightarrow\boldsymbol{A}+\nabla f$
Then there is such a thing written almost in every book on elecrodynamics:
"For example, we can use Coulomb gauge $\nabla \cdot \boldsymbol{A}=0$."
I can't understand this implication. Why this symmetry allow us to say, that divergence is zero? What is $f$ in this case?