Corbyn says new UK PM must put Brexit plan to second referendum