McClatchy beats earnings forecasts, touts digital investments