Pitt beats St. John's 89-69 to end 5-game skid