Cuba and Panama have restored diplomatic ties , one year after they were severed due to Panama 's decision to pardon four Cubans accused of trying to assassinate Cuban President Fidel Castro .