Northern Ireland's power-sharing agreement on the brink of collapse as Martin McGuinness quits