Stochastic analysis of symmetry-breaking bifurcations: Master equation approach