At least 13 people died when a building collapsed in Tanzania's commercial capital Dar es Salaam and more than 80 people have been rescued, the country's president said on Sunday.