Turkey’s opposition has dealt President Tayyip Erdoğan a stinging blow by winning control of Istanbul in a re-run mayoral election, breaking his aura of invincibility and delivering a message from voters unhappy over his ever tighter grip on power.