A Theory of Intraday Patterns: Volume and Price Variability