Valeant shares slump even as drugmaker posts highest net profit in three years