Putin declares martial law in occupied territories