Distributed Dynamic Associative Memory via Online Convex Optimization