Automatic foil hot stamping machine