Two men accused of attacking two friends with an axe and a sword have been acquitted.