Gold gains as US dollar weakens after cautious Fed speech