Nick Kyrgios has been banned from tennis after testing positive for cocaine.