Raul Castro resigns as head of Cuba's communist party