Measurement of W-pair production in e+e− collisions at 189 GeV