Optimal consumption in illiquid markets