In her first major speech since Keir Starmer announced his resignation, former minister warns Britain has ‘been on the wrong path for far too long’