National Gallery and Courtauld ‘knew art restorer had links to Nazis’