Liberalisation, consumption heterogeneity and the dynamics of energy prices