Jeremy Corbyn has repeatedly refused to clarify whether he would back Remain or Leave in a Brexit referendum he would call as prime minister.