Cuban President Raul Castro said Wednesday that Cuba had agreed to reestablish diplomatic ties with Cold War enemy the United States after a prisoner swap paved the way to a historic breakthrough.