Friedrich Nietzsche, Historian hyödystä ja haitasta elämälle