The traffic built up around the Aberdeenshire town, causing huge tailbacks.