Nicolas Mahut and Pierre-Hugues Herbert kept France's hopes alive in the Davis Cup final with a hard-fought doubles victory on Saturday.