Malaysian PM says rivals sides agree to an 'immediate and unconditional' ceasefire after five days of deadly fighting.