Gold prices inch up on weaker dollar