The Air Navigation Order states that no one should enter an aircraft drunk or get drunk on board. End of story. The Captain was correct in his actions and the staff at the gate were not correct in their duties. If they had acted on boarding there may not have been such a long delay.