All schools on the islands of Zanzibar have been temporarily closed because of flooding following weeks of heavy rains, says the education minister.