Thousands of protesters in Haiti's capital have clashed with police as they denounce a surge in gang violence and demand that the government keep them safe.