Sergio Ramos has left Paris Saint-Germain after enduring two underwhelming seasons at the French club.