Deal struck for Hampshire estate agency