A platform that allows retailers to sell advertising on their websites and inside their stores to other companies has secured almost $5 million in funding, as investors look to get a piece of the fast-growing “retail media” sector.