Allegri: 'Mental strength cost Juve'