Thousands of people have returned home to Ireland from as far away as Argentina and Asia to cast their votes in Friday's abortion referendum.