President defends decision not to attend NI centenary event