Erdogan blames "foreign and domestic ties" at protests