Donald Trump has signed an executive order imposing sanctions on the ICC for targeting the US and allies such as Israel, the BBC understands.