Southern pinto beans with ham