SO(10) unification with horizontal symmetry