The Three Hundred Project: The evolution of galaxy cluster density profiles