Light-induced switching of magnetic order in the anisotropic triangular-lattice Hubbard model