Home prices gain for 10th month in row, survey shows