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