The $G_2$ geometry of $3$-Sasaki structures