Stationary measures and phase transition for a class of probabilistic cellular automata