An NHS trust in Hampshire has declared critical incidents in two of its hospitals amid “extremely high attendances”.