H → γγ, gauge invariance, and the hierarchy problem