Adaptive proximal algorithms for convex optimization under local Lipschitz continuity of the gradient