Germany progressed to the semi-finals of the World Cup as Mats Hummels scored the decisive goal in a 1-0 victory against France.