The Cost of Privacy in Generalized Linear Models: Algorithms and Minimax Lower Bounds