Basingstoke and Deane Borough Council has purchased the freehold of the Beacon pub in South Ham with plans to turn it into a community hub.