France managed to hold off a second-half comeback from Argentina to win an exhilarating Rugby World Cup encounter in Japan.