First-Order Regret Analysis of Thompson Sampling