A new history of the disastrous, 19th century British invasion of Afghanistan reveals more about the current war than we might like to think.