Professions such as law, medicine and journalism have a “closed shop mentality” and are increasingly open only to those from affluent backgrounds, a report into social mobility says.