Fast rates in statistical and online learning