Miley Cyrus has spoken of her friendship with Ariana Grande - and how she "scared" her pal by "flirting" with her.