f(T) gravity mimicking dynamical dark energy. Background and perturbation analysis