Under-recovered costs of key government services lead to £340m shortfall in income