Experimental observation of dynamical phase transitions in a dephased photonic quantum walk