A US man who thought he’d won $340m (£270m) on a lottery is suing the organisers and a website which published his numbers, it has said, by mistake.