Turkey’s President Recep Tayyip Erdogan has agreed to support Sweden’s bid to join Nato, the military alliance’s chief Jens Stoltenberg has said.