Townhouses to replace three blocks in Lyneham