Phase switch in the stochastic response of a micromechanical beam resonator