Hampshire County Cricket Club has confirmed signing Tilak Varma for the county for the red-ball games.