The allure of war-led gains is drawing investors in, but history suggests that chasing these rallies often leads to sub-optimal returns.