you can have your own private meters to the flats however there are some laws around the charging - basically you can't make a profit from it and only sell it for what it costs to buy it
would be best to get DNO / meter company involved and get individual meters so each flat is responsible for...