Germany’s conservative Christian Democrats will enter coalition talks to form a government after winning the most votes.