The leader of Denmark's Social Democratic Party is forming a centre-left coalition minority government, giving her a third term as prime minister.