Shops were looted, cars set alight and a historic town hall largely destroyed as demonstrations over the rising cost of living descended into violence.