Major American and European brands have pulled out of Russia in protest over the war in Ukraine and have lost millions in the process.