Sharp geometric and functional inequalities in metric measure spaces with lower Ricci curvature bounds