Trapping and acceleration of spin-polarized positrons from $\gamma$ photon splitting in wakefields