Turkish president vows to 'drain terror swamp'