Pop stars Katy Perry and Rihanna have shown they are still friends after engaging in some friendly flirty banter on Twitter.