Stochastic resonance in a model of opinion formation on small-world networks