Gold prices gain for the month, but fall for the week