Marcel Kittel avoids late crash to win stage 6 despite a brave charge by Peter Sagan in the finale.