M Equilibrium: A Theory of Beliefs and Choices in Games