Terahertz electric-field driven dynamical multiferroicity in SrTiO$_3$