The US president’s comments come after five separate attacks in London leave three men dead.