MOTS: Minimax Optimal Thompson Sampling