Rodney Castleden explores the purpose of great prehistoric projects like Avebury and Stonehenge and the nature of the society which built them