A teenager has been found guilty of the attempted murder of a 13-year-old girl with a sword on a Halloween camping trip.