Yorkshire and Lancashire played out an entertaining tie in their Roses battle at Headingley in the Friends Life t20.