US inflation edges up, fueled by energy and housing prices, but many other costs rise only mildly