Former US national security adviser Condoleezza Rice said a “tit for tat” battle over rare earths between Donald Trump and Xi Jinping could escalate as the superpowers jostle for tech supremacy.