Test of the universality of τ and μ lepton couplings in W-boson decays with the ATLAS detector