Pure point spectrum for dynamical systems and mean almost periodicity