Italy have recorded back-to-back wins against Wales for the first time in their history after battling to a 22-15 victory.