Gold records gains for the fourth consecutive month