US stocks trade mixed as earnings season begins, but indexes eke out weekly gains