Asset pricing with general transaction costs: Theory and numerics