US stocks end mixed ahead of key inflation figures