Test beam demonstration of silicon microstrip modules with transverse momentum discrimination for the future CMS tracking detector