Special test configurations and $K$-stability of Fano varieties