Over 18,000 people detained in Turkey's coup bid probe