Causal third-order viscous hydrodynamics within relaxation-time approximation