Mean-Field Analysis of a Dynamical Phase Transition in a Cellular Automaton Model for Collective Motion