Edinburgh city council has added 40 new properties to its social housing list after buying more homes from the Ministry of Defence.