Gmail users have been urged to check their accounts and change their passwords urgently following a major security breach.