British diplomats have warned the government that backing an European Union (EU) ban on imports of palm oil could put lucrative arms deals with Malaysia at risk.