Ab initio energy partitioning at the correlated level