Ponting gives up captaincy, but bats on