The outgoing US ambassador to Panama issued a scathing critique of President Donald Trump and his foreign policies in an op-ed.