'Landmark' Glasgow building acquired for affordable housing