Anti-Israel protesters, who sought to “occupy” the roof of Scottish parliament, have been charged by police.