Macquarie Group has beaten expectations with a $4.8 billion annual profit, half of which the investment bank will return to shareholders.