Lima is set to declare a state of emergency as thousands of protesters amass around the country, with hundreds clashing with police.