Brexit 'should not undermine peace' in Northern Ireland