The US nuclear submarine that crashed into an underwater mountain in 2021 had collided shortly before against a dock