As predicted Gibraltar voted overwhelmingly to stay in the European Union with 19,322 votes to remain and 832 to leave.