Merrill takes $5 billion write-down, exposing company issues