Characteristic time scales of tick quotes on foreign currency markets: an empirical study and agent-based model