Young girls at a mixed primary school in Somerset have been banned from wearing thongs and G-strings after the headteacher deemed them "inappropriate".