The number of attacks on prison officers in Northern Ireland has trebled in the last five years, Stormont has heard.