Capital mobility and global factor shocks