Turkey’s president is back in Istanbul, and the military coup against him is foundering