Retrofit energy optimisation system for buildings