Troops dig in as Somalia war fears grow