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