Four houses in Glasgow are to be bought by the council and made available as social housing.