West Ham are close to signing Villarreal midfielder Pablo Fornals for £25m.