Andy Carroll netted a double in vain as West Ham were beaten 3-2 by Serie A champions Juventus in a game to mark the official opening of the London Stadium.