Stabilization by noise for a class of stochastic reaction-diffusion equations