Measurement of triple gauge-boson couplings at LEP energies up to 189 GeV