Residents trapped by collapse of five storey building