Gold climbs for 4th straight week as dollar softens