Andrew Connon has been elected NFU Scotland president, succeeding Martin Kennedy after a closely contested vote at the Union’s Glasgow conference.