A state of emergency has been declared in Bangkok as rescuers rush to the site of a collapsed building where at least 80 workers are unaccounted for.