Non-simply-connected gauge groups and rational points on elliptic curves