Greeks have queued outside banks as they reopened three weeks after closing to stop the system collapsing under a flood of withdrawals.