Equation of state for dark energy in $f(T)$ gravity