Syrian rebels and local government officials have agreed to a truce in the last opposition-held area of the central city of Homs.