Nonassociative Riemannian geometry by twisting