Sonoco Products said it would sell its thermoformed and flexibles packaging business to Japanese printing company Toppan Holdings for $1.8 billion.