A pointwise estimate for positive dyadic shifts and some applications