The only way to avoid a hard border between Ireland and Northern Ireland is the Brexit deal agreed by Britain and the European Union, Irish Prime Minister Leo Varadkar said on Friday.