On the Complexity of Linear Prediction: Risk Bounds, Margin Bounds, and Regularization