UK opposition leader Jeremy Corbyn says he wants a new customs union with the EU to protect trade and avoid a hard border in Northern Ireland.