Rational $p$-adic Hodge theory