US stocks languid, precious metals retreat as markets turn the page on a stellar year