Low-temperature phase transitions in YBa2Cu3O6+x by anelastic relaxation measurements and possible formation of ferroelectric and antiferroelectric domains