Effects of marital and fertility patterns on the transmission and distribution of wealth