Gold loses ground after market shrugs off housing data