Millisecond charge-parity fluctuations and induced decoherence in a superconducting transmon qubit