An upper bound for the $X$-ranks of points of $\mathbb {P}^n$in positive characteristic