A compound of formula (I) or a pharmaceutically acceptable derivative thereof, wherein, R1, R2, R3, R4, R5, m, n and X are as defined in the specification; a process for preparing such compounds; a pharmaceutical composition comprising such compounds; and the use of such compounds in medicine.