While the unexpected declaration of martial law was promptly struck down by parliament, the episode is likely to leave a bad taste in investors’ mouths.