Amazon has reportedly made a last-minute bid to buy TikTok, which faces a US ban if not sold by its Chinese owner.