A war of words has broken out between Elon Musk and the prime minister after the world's richest man claimed the UK is heading for civil war.