US stocks close higher as investors assess earnings reports