The M 4 Core Project with HST - II. Multiple stellar populations at the bottom of the main sequence