U.S. homebuilder sentiment edged up to an eight-month high in December, but activity remained constrained by rising construction costs because of tariffs on imports.