Katy Perry has admitted texting Kristen Stewart to assure her she wasn't sleeping with Robert Pattinson.