Tour de France debutant Fernando Gaviria claimed his second stage win when he outsprinted his rivals in the fourth stage.