Thailand’s trade with the US and China swung to record extremes last year, suggesting its role as a conduit for firms seeking to bypass President Donald Trump’s tariffs.