The origin and formation of the circumstellar disc