Charities to be banned from using government funding to lobby on behalf of beneficiaries