An ALMA survey of the brightest sub-millimetre sources in the SCUBA-2–COSMOS field