Ostrowski type inequalities for $p$-convex functions