Pro-democracy parties dominated Thailand’s general election to defeat the incumbent military-backed party, which led the last coup.