On the local behavior of the Ramanujan $\tau$-function