History provides some limited reassurance to the market turmoil after Britain’s vote to leave the European Union.