A history of wars through the ages and across the world, and the irrational calculations that so often lie behind them