Replica wormholes, entanglement wedges and the black hole information paradox