A man allegedly attacked his friend’s home in Ballymoney armed with an axe after they fell out over a woman, the High Court has heard.