The present invention provides compounds of formula (I)wherein n, p, R1, R2, X1, X2, X3, X4, X5, R3a, R3b, R4, R5 and R6 are as defined in the specification, a process for their preparation, pharmaceutical compositions containing them and their use in therapy.