Roger Federer and Serena Williams took an on-court selfie after their first ever clash at the Hopman Cup in Perth