A solution operator for $\bar\partial$ on the Hartogs triangle and $L^p$ estimates