Socially-Optimal Mechanism Design for Incentivized Online Learning