US stocks close with losses after consumer inflation figures