President Donald Trump has warned that he would impose sanctions on Russia if Moscow does not agree to a ceasefire.