Lamine Yamal has agreed a new long-term contract with Barcelona until 2031, the Spanish champions announced on Tuesday.