The cold water reduces the temperature of the glass. The cold glass reduces the temperature of the air around the glass. The moisture in this surrounding air gets condensed into liquid droplets. Hence we see a layer of water droplets on the outer surface of the glass.