Macquarie Group’s profit topped analyst expectations, spurred by activity in its key commodities and global markets division.