A cyberattack caused by a former IT contractor forced the Biritsh Museum to close some exhibitions over the weekend.