Lego will not renew its marketing contract with Shell after coming under sustained pressure from Greenpeace to end a partnership that dates to the 1960s.