A caterpillar that munches on plastic bags could hold the key to tackling plastic pollution, scientists say.