Castro resigns from ruling party to hand power to Cuba's younger generation