Italian cruise ship thwarts attack by Somali pirates