Effects of diffusion in fluctuating media: A noise-induced phase transition