Marseille have agreed a deal in principle to sign teenage defender Benjamin Mendy from Le Havre, the Ligue 1 club have confirmed.