Junta reinstates constitution as rebels seize Timbuktu