Paris Saint-Germain have announced the signing of Edinson Cavani from Napoli on a five-year contract.