German MPs are to vote again after Friedrich Merz's bid to become Germany's next chancellor unexpectedly failed in the first parliamentary ballot.