African heads of state have agreed to create the largest free trade area covering 26 member states and stretching from Cape Town to Cairo.