On the formation of singularities in the critical $O(3)$ $\sigma$-model