Ghana foils ‘attempted coup’