The splitting of reductions of an abelian variety