Galaxies in the act of quenching star formation