Electroweak couplings of the τ lepton