Manchester City have completed the transfer of midfielder Samir Nasri from Arsenal for a reported £25m.