Sam Curran has taken a hat-trick as England beat Sri Lanka by 11 runs under the Duckworth-Lewis method in their rain-marred opening Twenty20 ‍International in Pallekele.