The GAPS Programme with HARPS-N at TNG: XIV. Investigating giant planet migration history via improved eccentricity and mass determination for 231 transiting planets