Erdogan portrays the clashes, and a corruption scandal dogging his government, as part of an anti-government plot embracing foreign and domestic forces.