Locally one-dimensional difference scheme for a pseudoparabolic equation with nonlocal conditions