gold rises to record; gains 6.3% in week