The Prince of Wales has arrived in Northern Ireland for a surprise visit as he continues his work to combat homelessness.