Test cricket great Ricky Ponting to retire from the game