West Ham have completed the signing of Lyon midfielder Lucas Paqueta in what could become a club-record transfer.