HSBC's Q3 profit beats expectations