People were eating pasta in China at least 2,000 years before the practice emerged in Italy, according to an archaeological find.