Gold gains as dollar and yields fall