Gold edges lower as traders take profits after hitting record high