US consumer prices rise 0.4% in August, up 1.3% yearly