Spontaneous collective coherence in driven dissipative cavity arrays