Portuguese Prime Minister Says U.K. Ties Will Weather Brexit