Barcelona have reached an out-of-court agreement with their former player Neymar to end a legal dispute in "amicable fashion". Brazil…