Matteo Berrettini downed Gael Monfils in straight sets to help Italy beat France and reach the semi-finals of the ATP Cup.