The Central African Republic's embattled interim president, Michel Djotodia, and his prime minister, Nicolas Tiengaye, have announced their resignation during a crisis summit held in neighbouring Chad.