Measuring the leverage effect in a high frequency framework