Measurement of the weak dipole moments of the tau lepton