Multiple crashes in a Wiltshire town have caused chaos on some of its busiest roads.