Home Secretary Shabana Mahmood is to replace the grant with ringfenced funding for neighbourhood officers.