Andy Murray heads into retirement after Olympic doubles loss