Method for the production of hollow bodies from thermoplastic and apparatus for carrying out the method