Search for charged Higgs bosons in e+e− collisions at energies up to = 189 GeV