US debt tops $40 trillion, pushing gold higher on fiscal risk