Geometric Sen theory and locally analytic Shimura varieties