Pakistani stocks close at record high amid hopes for stability