Gold gains as dollar softens on Fed expectations