Optimal Streaming Algorithms for Multi-Armed Bandits