Ducati’s Bagnaia holds off title-chasing Quartararo in San Marino