Amazon has spent more than a decade investing in physical retail, particularly grocery — but the company has yet to find a store format that works.