A British man and his two friends were shot dead in Mexico because they were in the "wrong place at the wrong time", his inquest has heard.