An accurate measurement of the anisotropies and mean level of the cosmic infrared background at 100 μm and 160 μm