People born into higher social classes are overconfident and have "an exaggerated belief" that they'll perform better than others, a study finds.