Taoiseach Leo Varadkar has says it is "only a matter of time" before same-sex marriage is introduced in Northern Ireland, as he attended a gay Pride event in Belfast.