Mexico is willing to raise tariffs on Chinese goods and find ways to buy more from the US in a bid to avoid duties threatened by President Donald Trump, according to people familiar with the matter.