Rail services affected after Bedford collision