Nearly one quarter of the Lebanese population has been displaced by Israel's military campaign there, the country's caretaker prime minister has said.