Turkey promised to help stem the flow of refugees to Europe in return for cash, visas and renewed talks on joining the EU in a deal struck on Sunday that the Turkish prime minister called a "new beginning" for the uneasy neighbours.