The prospect of a contested election threatens to overshadow Labour’s annual conference in Liverpool at the end of September, with some seeing it as a referendum on the prime minister’s leadership