Somalia has warned that it will expel thousands of Ethiopian troops from the country if Addis Ababa goes ahead with a disputed port deal with Somaliland.