US military presence in Ukraine could have deterred Putin, says top general