EFFECTIVE CLASSICAL XY HAMILTONIAN FOR DISSIPATIVE JOSEPHSON JUNCTION ARRAYS