Turkiye detains Erdogan’s main rival in what opposition calls ‘coup’