A characterization of rational singularities in terms of injectivity of Frobenius maps