Trimmed Maximum Likelihood Estimation for Robust Learning in Generalized Linear Models