Soldiers will stay in five places around the border, Israel says - a move condemned by Lebanon.