Charitable giving makes people more attractive to others, data shows