Thousands are fleeing the Thai capital as flooding has worsened and the first shortages have begun.