HSBC Q2 Profit Beats Estimates, Resumes $1B Buyback