The cost of dog attacks on farm animals in Northern Ireland rose by almost half in a year, the Ulster Farmers’ Union has said.