Sri Lanka beat Pakistan by seven wickets to claim series