Cuba's president said Donald Trump's hardline stance towards the country was a "setback" in relations with the United States after ties were gradually restored in 2015.