A game-theoretic model of reciprocity and trust that incorporates personality traits