Police detain 176 as President Recep Tayyip Erdoğan vows to eliminate ‘terrorism at its source’