Pets at Home lost nearly a quarter of its value after it announced the sudden departure of its boss alongside a second profit warning of the year.