A block of council flats is set to be demolished after major structural issues caused by ground instability appeared.