British police on Tuesday were investigating two attempts to disrupt the rail network that they said were linked to Britain’s exit from the European Union.