Belief aggregation for representative agent models