Baryogenesis in an SO(10) GUT model with Pati-Salam intermediate symmetry