Realty Income Corp., one of the largest U.S. real estate investment trusts, agreed to buy 454 single tenant properties leased mostly by Dollar Tree, Walgreens and other chains from an affiliate of CIM Group in a $1.25 billion deal that marks the increasing appetite of investors for retail properties where tenants pay most of the operating expenses.