Rangana Herath becomes oldest to take Test hat-trick, wrecks Australia