Ronaldo fails to impress in debut as Juventus escape defeat