Integral modular categories and integrality of quantum invariants at roots of unity of prime order