Malaysia has stumbled into fresh political turmoil after a tightly contested general election delivered a hung parliament for the first time in its history.