Thailand officials have launched an investigation into the collapse of a Bangkok skyscraper that failed to withstand a 7.7-magnitude earthquake on Friday.