A model for a two phase formation of the East African Rift