Constraints on cosmic strings using data from the first Advanced LIGO observing run