Five East Africa nations and the European Union have agreed an interim trade deal to replace preferential tariff agreements due to expire this year.