Libya has withdrawn as hosts of the 2017 Africa Cup of Nations tournament because of ongoing security issues in the country, the Confederation of African Football (CAF) has announced.