Role of transverse excitations in the instability of Bose-Einstein condensates moving in optical lattices