Togo, which pulled out of the Africa Cup of Nations after a terrorist attack on its team bus, has been banned for the next two editions of the tournament, the African Football Confederation (CAF) has announced.