With many Americans seized by anxiety about the country’s economic decline, candidates from both political parties have suddenly found a new villain to run against: China.