Turkey’s Erdogan says social media a ‘threat to democracy’