The two countries said they had agreed to speed up cooperation and boost US military presence in Australia to counter China's unprecedented military buildup.