Chris Froome effectively clinched his fourth Tour de France title after finishing third on the penultimate stage of the race.