Avebury does look very much like a trading post to me - it has four entrances corresponding to the four cardinal points, a good supply of fresh water and is located close to the Ridgeway - 'Europe's Oldest Road'. That's not to say that trading was all that Avebury was used for - something that spectacular would surely have also been used for ceremonial purposes.
And the ditch? Pigpens of course.