US stocks finish the week mostly lower as July inflation data comes in mixed