A painting by the modern master Robert Motherwell which was presumed stolen for the last four decades has been returned to the charitable foundation he established before his death.