Turkey has warned that it will deploy army troops in order to end more than two weeks of anti-government protests.