On the optimal regularity of weak geodesics in the space of metrics on a polarized manifolds