Automatic filling machine for liquid and viscous products in CHAB-type packages