Famous for his eccentric character, the Tuscan painter joined his fellow Mannerists in taking up the legacy of the Renaissance masters. But a new exhibition in Rome also reveals his strikingly modern side