A microscopic investigation into the capacity drop