Ricky Ponting ends cricket career