Homes, businesses and cars were attacked and 17 police offices were injured during violent disorder in Ballymena and several other areas.