Marcel Kittel has won the 12 stage of the Tour de France. He pipped Mark Cavendish in a sprint for the line.