A study has found that people are more likely to call a science ‘soft’ if they believe that more women work in it.