Former world number one Andy Murray loses an eventful Italian Open first-round match against home favourite Fabio Fognini.