Northern Ireland police chief resigns after controversies including huge data breach