Britain and America will never again invade foreign countries “in an attempt to make the world in their own image”, Theresa May has said in the biggest shift in UK foreign policy for more than 20 years.