Rashid misses out on hat-trick by being hit for six